package com.itheima.mapper;

import com.itheima.pojo.FrontMenus;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface FrontMenusMapper {
    @Insert("insert into front_menus(name,path) values (#{name},#{path})")
    void add(FrontMenus frontMenus);
    @Select("select * from front_menus")
    List<FrontMenus> list();

    @Update("update front_menus set name=#{name},path=#{path} where id=#{id}")
    void update(FrontMenus frontMenus);

    @Delete("delete from front_menus where id=#{id}")
    void delete(FrontMenus frontMenus);
}
